home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
keyinp.zip
/
KEYIDEMO.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-01-04
|
854b
|
36 lines
program KeyIDemo;
uses crt, dos, GS_KeyI;
var
lin : string[80];
numi : integer;
numr : real;
{$F+}
procedure tst;
begin
window(1,20,80,24);
ClrScr;
gotoxy(20,1);
case GS_KeyI_Chr of
#59 : write('Function Key F1 Pressed');
#60 : write('Function Key F2 Pressed');
#61 : write('Function Key F3 Pressed');
#62 : write('Function Key F4 Pressed');
#71 : write('The Home Key was Pressed');
#79 : write('The End Key was Pressed');
else
write(#7);
end;
window(1,1,80,25);
end;
{$F-}
begin
clrscr;
GS_KeyI_Hlp := @tst;
lin := GS_KeyI_T(true, 8,10,1,1,'Enter Text Field: ','empty');
numi := GS_KeyI_I(true, 2,10,2,2,'Enter Integer Field (0-50): ',0,0,50);
numr:= GS_KeyI_R(true, 6,10,3,3,'Enter Real Field (0-99.99): ',0,0,99.99,2);
end.